package com.starryx.driverschool.dao;

import com.starryx.driverschool.po.Car;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CarRepository extends JpaRepository<Car, Long>, JpaSpecificationExecutor<Car> {
    Car findByNo(String no);

    List<Car> findAllByTeacherNull();
}
